package com.xiaohu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("COLUMNS")
public class Columns {

    // 数据库连接
    @TableField(value = "TABLE_SCHEMA")
    private String tableSchema;

    // 表名
    @TableField(value = "TABLE_NAME")
    private String tableName;

    // 字段名称
    @TableField(value = "COLUMN_NAME")
    private String columnName;

    // 是否非空(YES OR NO)
    @TableField(value = "IS_NULLABLE")
    private String isNullable;

    // 字段类型
    @TableField(value = "DATA_TYPE")
    private String dataType;

    // 字段注释
    @TableField(value = "COLUMN_COMMENT")
    private String columnComment;

    @TableField(value = "COLUMN_KEY")
    private String columnKey;

    @TableField("EXTRA")
    private String extra;

    @TableField(exist = false)
    private String DbFieldName;
}
